package com.example.mapper;

import com.example.entity.SearchHistory;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface SearchHistoryRepository extends JpaRepository<SearchHistory, Long> {
    // 根据用户ID查找其搜索历史
    List<SearchHistory> findByUserId(Long userId);
}

